package com.etc.dao;

import java.util.List;

import com.etc.entity.User;

public interface UserDao {
	//登录
	public User login(String name,String pwd);
	//注册
	public int regUser(String name,String pwd,String role,String status);
	//封禁用户
	public int closeUser(int id);
	//解禁用户
	public int openUser(int id);
	//模糊搜索用户
	public List<User> searchUser(String username);
	//修改用户信息
	public int updateUser(int id,String password,String newpassword);
	//查找全部用户信息
	public List<User> searchAllUser();
	//删除用户
	public int deleteUser(int id);
	
}
